home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-3412
/
chaos
/
chaos.asc
next >
Wrap
Text File
|
1989-08-06
|
3KB
|
84 lines
The Chaos Game
(CHAOS.TOS)
by
Chuck Grimsby
This program was inspired by the "Chaos Game" as presented on
the PBS show: NOVA: The Strange New Science of Chaos.
It's a rather simple game. You start by taking a large peice
of paper. In the upper lefthand corner you make a dot and mark it
"1,2". In the upper righthand corner you make another dot marking
this one "3,4", finaly, on the bottom of the page, centered, you
mark another dot, this one named "5,6".
Now pick any spot on the page at random. Just wave a pencil
over the page with your eyes closed then drop it to the page. This
is your starting point.
Well, that was exciting, wasn't it. Ok, it's time to "play"
the game. Roll a die (a "die" is one of a pair of dice). If you
roll a 1 or a two, find the midpoint between the starting point
and the 1,2 mark and draw a line to it. Do the same if you rolled
a 3 or a 4 except go towards the 3,4 mark, or if you rolled a 5 or
a 6 towards the 5,6 mark. Simple, eh?
Now continue on from the point you drew to above.
Supposedly, according to the people who are now examining
"Chaos" mathamaticly, if you do this long enough you'll eventualy
discover some sort of pattern.
Well, you lucky ST owner, now instead of doing this on paper
a "wasting" lots of time, now there's this program.
Unlike the game I discribed above, this program will do the
game with either 3 or 4 "marks" or corners. It will also either
draw a line between the points or just simply Plot the points. You
can also vary the "midpoint" so that instead of using the halfway
point you can use the 1/3 or whatever distance. Just for fun, I
also threw in "Random". With each "die roll" the distance is also
rolled so that it's constantly changing. Of what value this is to
"Chaos mathamaticians" is unknown (probably none), but it's there
if you're interested.
When the program is running, there are four keys you can use.
The <Esc> key will stop the run and allow you to enter in new
values. This will also clear the screen.
The Clr/Home key just does a simple clear screen. The values
the program is using are not changed.
The Undo key exits the program.
The space bar will send the program into a endless loop
until another key is pressed. This is for those of you who want to
"Snap Shot" the screen for whatever reason.
The program _should_ work in all three resolutions. I've
tested both Low and Medium, but since I don't have a High res
monitior I can't test that. The code _IS_ there for mono users
though.
Enjoy!
If yoy want to contact me for whatever reason, I can be reached
via at the following addresses:
Chuck Grimsby
ST Wholsellers BBS (612-374-5307)
F-NET Node 262
CompuServe 73217,1363
GEnie C.GRIMSBY
or via U.S. "snail" mail:
c/o
Alpha-Tech Computers
2901 Wayzata Blvd.
Minneapolis, MN 55405